<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Entity_Post_Collection extends Core_Db_Collection {

	public function addVisibleFilter() {
		$this->getSelect()->where('is_visible = 1');
		return $this;
	}
	
	public function addCategoryFilter($catId) {
		$this->getSelect()->where("category = $catId");
		return $this;
	}
}